<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>添加课程</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 600px;
            margin: 50px auto;
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }

        h1 {
            text-align: center;
            color: #333;
        }

        label {
            font-weight: bold;
            margin-top: 10px;
            display: block;
        }

        input[type="text"], input[type="number"] {
            width: 100%;
            padding: 8px;
            margin: 8px 0 20px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        input[type="submit"] {
            width: 100%;
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        input[type="submit"]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>添加新课程</h1>
    <form action="/course/addCourse" method="post">
        <label for="courseName">课程名称:</label>
        <input type="text" id="courseName" name="courseName" required>

        <label for="courseScore">课程学分:</label>
        <input type="number" id="courseScore" name="courseScore" required>

        <label for="courseTime">课时:</label>
        <input type="number" id="courseTime" name="courseTime" required>

        <label for="courseType">课程类型:</label>
        <input type="text" id="courseType" name="courseType" required>

        <input type="submit" value="添加课程">
    </form>
</div>
</body>
</html>
